﻿using UnityEngine;
using System.Collections;

public class Rocket3 : MonoBehaviour {

	public int rocket_power = 2;
	float m_speed =8;
	Transform m_transfoem;
	void Start () {
	
		m_transfoem = this.transform;
	}

	void Update () {
		m_transfoem.Translate(new Vector3(0,m_speed*Time.deltaTime,0));
	}

	void OnTriggerEnter2D(Collider2D other)
	{
		if(other.tag.CompareTo("Bounds") == 0||other.tag.CompareTo("Bounds2") == 0)
		{
			Destroy(this.gameObject);
		}
	}
}
